import Vue from 'vue'
import 'viewerjs/dist/viewer.css'
import { api as viewerApi } from 'v-viewer'

/**
 * 图片预览
 * @param {*} urls url地址数组
 */
Vue.prototype.v_preview = function (urls) {
  viewerApi({
    images: urls,
  })
}
